<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="jQuery-2.2.0.min.js"></script>
		<script src="jquery.jqprint.js"></script>
		<script src="http://www.jq22.com/jquery/jquery-migrate-1.2.1.min.js"></script><!-- 解决Cannot read property 'opera' of undefined错误问题是juqery版本兼容问题
解决方法：加入迁移辅助插件jquery-migrate-1.0.0.js可解决版本问题 -->
	</head>
	<body>
		<div id="ddd">
			<table>
				<thead>
					<tr>
						<th>姓名</th>
						<th>性别</th>
						<th>年龄</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>1</td>
						<td>2</td>
						<td>3</td>
					</tr>
				</tbody>
				<tfoot>
					
				</tfoot>
			</table>
		</div>
	
		<input type="button" value="打印" onclick="a()">
		<script id="ddd-tpl"></script>
		<script>
			function a(){
				$("#ddd").jqprint()
			}
		</script>
	</body>
</html>
